#include "luos_engine.h"
#include "robus_network.h"
#include "led.h"
#include "esp_log.h"
#include "esp_task.h"
#include "gate.h"
#include "pipe.h"

static const char *TAG = "led";

void led_main(void)
{
    Luos_Init();
//    Robus_Init();
    Gate_Init();
    Pipe_Init();
    Led_Init();

    ESP_LOGI(TAG, "led_main start");

    while (1)
    {
        Luos_Loop();
        Gate_Loop();
        Pipe_Loop();
        Led_Loop();
        vTaskDelay(portTICK_PERIOD_MS*100);
    }
}
